﻿@using DevExpress.Blazor.Internal
@using DevExpress.ExpressApp.Blazor.Components
@using DevExpress.ExpressApp.Blazor.Services
@using Microsoft.AspNetCore.Components.Web

<div @onclick="Click" @attributes="Attributes" title="@Title">
    @if (string.IsNullOrWhiteSpace(IconColor))
    {
        @DxImage.IconCssOrImage(null, ImageUrlService.GetImageUrl(IconName), "node-action-icon")
    }
    else
    {
        <XafImage ImageName="@IconName" Size="16" Color="@IconColor" />
    }
</div>